projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f211031
)
file chooser: Unset sidebar during search
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 28 Jan 2015 23:26:42 +0000
(18:26 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 28 Jan 2015 23:26:42 +0000
(18:26 -0500)
It is a bit misleading to have one of the places in the sidebar
selected while in search mode, since the search is not relative
to any location. So, unset the sidebar selection when we enter
search mode.
gtk/gtkfilechooserwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfilechooserwidget.c
b/gtk/gtkfilechooserwidget.c
index d6c02025bf9eca6ad9b98887a50bfc1862384593..bcfdb7c3c9bd1f769505a27a48018a492da6603f 100644
(file)
--- a/
gtk/gtkfilechooserwidget.c
+++ b/
gtk/gtkfilechooserwidget.c
@@
-2509,6
+2509,7
@@
operation_mode_set_search (GtkFileChooserWidget *impl)
search_setup_widgets (impl);
gtk_entry_grab_focus_without_selecting (GTK_ENTRY (priv->search_entry));
gtk_widget_set_sensitive (priv->filter_combo, FALSE);
+ gtk_places_sidebar_set_location (GTK_PLACES_SIDEBAR (priv->places_sidebar), NULL);
}
static void